import axios from 'axios'

export const request = axios.create({
    headers: {
        'Content-Type': 'application/json'
    },
    baseURL: process.env.VUE_APP_CHATGPT4_ASSISTANT_API, timeout: 500000000,
});

/**
 * 掉生成报表的接口
 * @param data
 * @returns {AxiosPromise}
 */
export function getAssistantVos(data) {
    return request({
        url: `chatgpt4/chat/vos/chat/assistant`,
        method: 'POST',
        data
    })
}

export function getVosReport(data) {
    return request({
        url: `chatgpt4/chat/vosreport`,
        method: 'POST',
        data
    })
}


export function getVosSql(data) {
    return request({
        url: `chatgpt4/chat/vos`,
        method: 'POST',
        data
    })

}

// export function getVosCache() {
//     return request({
//         url: `chatgpt4/chat/vos_cache`,
//         method: 'POST'
//     })
// }
export function getVosCache() {
    return request({
        url: `http://123.125.12.110:8123/prod-api/mgmt/catalog/tree/by/1`,
        method: 'GET'
    })
}
